package serverMessage;
import time.LogicalTimeStamp;
import time.VectorTimeStamp;

public class UserLoginAnnouncement extends ServerMessage{
	private static final long serialVersionUID = -1415052848309181630L;
	private String username;

	public UserLoginAnnouncement(String username, LogicalTimeStamp msgTS) {
		super(ServerMessage.USER_LOGIN_ANNOUNCMENT, msgTS);
		this.username = username;
	}
	
	public String getUsername() {	return username;		}
	//public VectorTimeStamp getTS(){	return super.getTS();	}
	
	public LogicalTimeStamp getMsgTS(){return super.getMessageTS();}
	
	public String toString(){
		return "UserLoginAnnouncement" + " username: " + username + " TS="+super.getMessageTS();
	}
}
